package main

import (
	lib "hello/lib"
	"io/ioutil"
	"log"
	"net/http"
	"strings"
)
var MsgTplUrl = "https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token="
var data = `
{
    "industry_id1":"3",
    "industry_id2":"4"
}
`
func main() {
	token, _ := lib.AcquireAccessToken()
	resp, _ := http.Post(MsgTplUrl + token, "application/json", strings.NewReader(data))
	res, _ := ioutil.ReadAll(resp.Body)
	log.Printf("message template is :%s", string(res))
}
